package pri.hillchen.springbootstd.sso.common.response;

import java.util.Collection;
import java.util.List;

/**
 * @author:hillchen
 * @DESCRIPTION:
 * @Date: Created in 8:43 2017/12/26 0026.
 */
public interface RecodesResponse<T> extends RecodeResponse<List<T>>{
    /**
     * 响应结果是否为空
     * @return
     */
    boolean isEmpty();

    /**
     * 添加结果记录
     * @param recode
     */
    void addRecode(T recode);

    /**
     * 添加多条结果记录
     * @param recode
     */
    void addRecodes(Collection<T> recode);
}
